import '@/assets/css/commonHeader.css'
import {useStore} from 'vuex';
export default {

    setup(){
        const getImgSrc=(vue)=>{
            return new URL(`@/assets/img/vue.svg`,import.meta.url).href;
        };
        let store = useStore();
        let handleCollapse=()=>{
            //调用vuex中的mutations
            store.commit('updateIsCollapse')
        }
        return{
            getImgSrc,
            handleCollapse,
        };
    }

}
